package com.ebelter.btcomlib.models.bluetooth.products.hrscale.bean;


import com.ebelter.btcomlib.models.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

/**
 * 测量结果的model
 * Created by Sergio Pan on 2017/11/10.
 */
@Table(database = AppDatabase.class)
public class HRScaleMeasureResult extends BaseModel{


    public static final String TAG = "ScaleMeasureResult";

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;


    /*用户标识id，必须保证唯一性*/
    @Column
    public String btId;

    @Column
    public String authKey;

    /*年龄*/
    @Column
    public int age;

    /*性别*/
    @Column
    public int sex;

    /*测量时间*/
    @Column
    public String measureTime;

    /*阻抗*/
    @Column
    public float resistance;

    /*体脂率*/
    @Column
    public float fat;

    /*体重*/
    @Column
    public float weight;

    /*水分率*/
    @Column
    public float waterRate;

    /*基础代谢率率*/
    @Column
    public float bmr;

    /*内脏脂肪等级*/
    @Column
    public float visceralFat;

    /*肌肉量*/
    @Column
    public float muscleVolume;

    /*骨骼肌*/
    @Column
    public float skeletalMuscle;

    /*骨量*/
    @Column
    public float boneVolume;

    /*BMI*/
    @Column
    public float bmi;

    /*蛋白质*/
    @Column
    public float protein;

    /*身体得分*/
    @Column
    public float bodyScore;

    /*身体年龄*/
    @Column
    public float bodyAge;

    @Column
    public String weightUnit ="kg";

    @Column
    public String fatUnit = "%";


    public int mesureCode;


    public boolean isSuspectedData = false;//是否疑义数据

    public boolean isSuspectedData() {
        return isSuspectedData;
    }

    public void setSuspectedData(boolean suspectedData) {
        isSuspectedData = suspectedData;
    }

    public HRScaleMeasureResult() {
    }

    public String getBtId() {
        return btId;
    }

    public void setBtId(String btId) {
        this.btId = btId;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }


    public String getMeasureTime() {
        return measureTime;
    }

    public void setMeasureTime(String measureTime) {
        this.measureTime = measureTime;
    }

    public float getResistance() {
        return resistance;
    }

    public void setResistance(float resistance) {
        this.resistance = resistance;
    }

    public float getFat() {
        return fat;
    }

    public void setFat(float fat) {
        this.fat = fat;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public float getWaterRate() {
        return waterRate;
    }

    public void setWaterRate(float waterRate) {
        this.waterRate = waterRate;
    }

    public float getBmr() {
        return bmr;
    }

    public void setBmr(float bmr) {
        this.bmr = bmr;
    }

    public float getVisceralFat() {
        return visceralFat;
    }

    public void setVisceralFat(float visceralFat) {
        this.visceralFat = visceralFat;
    }

    public float getMuscleVolume() {
        return muscleVolume;
    }

    public void setMuscleVolume(float muscleVolume) {
        this.muscleVolume = muscleVolume;
    }

    public float getBoneVolume() {
        return boneVolume;
    }

    public void setBoneVolume(float boneVolume) {
        this.boneVolume = boneVolume;
    }

    public float getBmi() {
        return bmi;
    }

    public void setBmi(float bmi) {
        this.bmi = bmi;
    }

    public float getProtein() {
        return protein;
    }

    public void setProtein(float protein) {
        this.protein = protein;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    public String getFatUnit() {
        return fatUnit;
    }

    public void setFatUnit(String fatUnit) {
        this.fatUnit = fatUnit;
    }

    public float getSkeletalMuscle() {
        return skeletalMuscle;
    }

    public void setSkeletalMuscle(float skeletalMuscle) {
        this.skeletalMuscle = skeletalMuscle;
    }

    public float getBodyScore() {
        return bodyScore;
    }

    public void setBodyScore(float bodyScore) {
        this.bodyScore = bodyScore;
    }

    public float getBodyAge() {
        return bodyAge;
    }

    public void setBodyAge(float bodyAge) {
        this.bodyAge = bodyAge;
    }

    @Override
    public String toString() {
        return "MeasureResult{" +
                "btId='" + btId + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", measureTime='" + measureTime + '\'' +
                ", resistance=" + resistance +
                ", fat=" + fat +
                ", weight=" + weight +
                ", waterRate=" + waterRate +
                ", bmr=" + bmr +
                ", visceralFat=" + visceralFat +
                ", muscleVolume=" + muscleVolume +
                ", skeletalMuscle=" + skeletalMuscle +
                ", boneVolume=" + boneVolume +
                ", bmi=" + bmi +
                ", protein=" + protein +
                ", bodyScore=" + bodyScore +
                ", bodyAge=" + bodyAge +
                ", weightUnit='" + weightUnit + '\'' +
                ", fatUnit='" + fatUnit + '\'' +
                '}';
    }
}
